package com.chalk.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.chalk.model.Member;
import com.chalk.vo.MemberVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 会员表(Member)表数据库访问层
 *
 * @author maxiaoqiang
 * @since 2019-03-22 17:38:23
 */
@Mapper
public interface MemberDao extends BaseMapper<Member> {

    /*自定义接口*/

    /**
     * 根据主键批量(逻辑)删除
     *
     * @param ids
     * @return
     */
    int deleteBatchByPrimaryKey(String[] ids);

    /**
     * 粉丝列表
     * @param page
     * @param member
     * @return
     */
    List selectFanPage(Pagination page, MemberVo member);
}